/**
 * 
 */
package puzzlegame.presentation;

import java.io.IOException;

import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.lcdui.game.TiledLayer;

/**
 * @author Ma811
 *
 */
public class PuzzleCanvas extends GameCanvas implements Runnable
{
	TiledLayer imgMgr;
	Image	imgSource;
	
	
	/**
	 * @param suppressKeyEvents
	 * @throws IOException 
	 */
	public PuzzleCanvas(boolean suppressKeyEvents) throws IOException
	{
		super(suppressKeyEvents);
		// TODO Auto-generated constructor stub
		
		imgSource = Image.createImage("/Ma811_Img.jpg");
		//imgMgr = new TiledLayer(3, 3, imgSource, getWidth(), getHeight());
	}

	public void paint(Graphics g)
	{
		// show the user a screen with "PAUSED" in the center
		//imgMgr.paint(g);
		g.drawImage(imgSource, 10, 10, Graphics.LEFT | Graphics.TOP);
	}

	public void run()
	{
		// TODO Auto-generated method stub
		
	}
}
